import request from "@/utils/request";
import {
  KKConversationFrom,
  KKConversationType,
  KKConversationStatus,
} from "@/pagesA/answer/components/conversitonEnum";

const answerContent = {
  type: "",
  text: "",
};

// 答疑同统计
export const getAppletTeacherAnswerCountPort = (startTime: string) => {
  return request({
    url: "/kukeanswerhive/appletTeacher/kaRequest/getAppletTeacherAnswerCountPort",
    method: "post",
    data: {
      startTime,
    },
  });
};

// 我的答疑待办
export const getAppletTeacherBacklogStatistics = () => {
  return request({
    url: "/kukeanswerhive/appletTeacher/kaRequest/getAppletAdminBacklogStatistics",
    method: "post",
  });
};

// 我的答疑列表
export const getAppletTeacherMyRequestList = () => {
  return request({
    url: "/kukeanswerhive/appletTeacher/kaRequest/getAppletTeacherRequestList",
    method: "post",
  });
};

// 答疑用户信息详情
export const answerGetUserInfoProt = (id: string) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/getUserInfoProt",
    method: "post",
    data: {
      id,
    },
  });
};

// 修改核算数
export const modifyCalculateNumProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/modifyCalculateNumProt",
    method: "post",
    data,
  });
};
// 收录试题
export const employQuestionProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/employProt",
    method: "post",
    data,
  });
};

// 获取历史记录
export const getHistoryListProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/getHistoryListProt",
    method: "post",
    data,
  });
};

// 添加回复
export const addResponseProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/addResponseProt",
    method: "post",
    data,
  });
};

// 生成AI回复
export const getAiResponseProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/getAiResponseProt",
    method: "post",
    data,
  });
};

// 按题干查找相似题
export const getStemSearchProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/getStemSearchProt",
    method: "post",
    data,
  });
};

// 试题查询

export const getKqQuestionListProt = (data: any) => {
  return request({
    url: "/kukecorequestion/outer/answer/getKqQuestionListProt",
    method: "post",
    data,
  });
};

// 相似题回复
export const getSimilarQuestionsProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/getSimilarQuestionsProt",
    method: "post",
    data,
  });
};

// 获取我的答疑
export const getMyAnswerRecordList = (data: any) => {
  return request({
    url: "/kukeanswerhive/appletTeacher/kaRequest/getAppletTeacherRequestList",
    method: "post",
    data,
  });
};

// 未回复统计
export const getUnResponseStatisticsProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/getUnResponseStatisticsProt",
    method: "post",
    data,
  });
};

// 增加答疑回复次数
export const addAiResponseCntProt = (data: any) => {
  return request({
    url: "/kukeanswerhive/interractive/pc/addAiResponseCntProt",
    method: "post",
    data,
  });
};
